import { ParamsPage, ResponsePage } from '@/api/common/type';

export type WorkshopListParams = ParamsPage & searchParams;

export interface searchParams {
    workshopName?: string;
    workshopCode?: string;
    workshopLeader?: string;
    contactNumber?: string;
    keyword?: string;
}

export interface WorkshopListResponse extends ResponsePage {
    records: WorkshopRecords[];
}

export interface WorkshopRecords {
    id: number;
    workshopName: string;
    workshopCode: string;
    userId: number;
    workshopLeader: string;
    contactNumber: string;
    dataSource: 'EXCEL' | 'ARTIFICIAL';
    state: 'ENABLE' | 'DISABLE';
    creator: string;
    createTime: string;
    updateTime: string;
    jobNumber: string;
    plainPassword: string;
}

export interface AddWorkshopBody {
    workshopName: string;
    workshopCode: string;
    userId: number;
    state: 'ENABLE' | 'DISABLE';
    id?: number;
}
